package com.hoas.comparedb.mysql;

import com.hoas.comparedb.core.CompareSource;
import com.hoas.comparedb.core.DBCompareBuilder;
import com.hoas.comparedb.core.DBReader;
import com.hoas.comparedb.core.DBWriter;

import java.io.Writer;
import java.util.Properties;

public class MySQLCompareBuilder implements DBCompareBuilder {
    @Override
    public DBReader createReader(CompareSource source, String sdb) {
        return new MySQLReader( source, sdb);
    }

    @Override
    public DBWriter createWriter(Writer writer, Properties properties) {
        return new MySQLWriter(writer, properties);
    }

    @Override
    public String getType() {
        return "mysql";
    }
}
